#ifndef _CGAME_H
#define _CGAME_H

#include <SDL.h>
#include <SDL_image.h>
#include "CEventManager.h"
#include "CLogger.h"
#include "Defines.h"


class CGame : CEventManager{
public:
	static CGame* pGame;

private: 
	SDL_Surface*	msfcWindow;
	SDL_Surface*	msfcBackground;
	int			    mGameState;



public:
	bool			bRunning;

public:
	CGame();
	bool Init();
	void Event(SDL_Event* Event);
	void Update();
	void Render();
	bool Quit();
	void KeyDown(SDLKey sym, SDLMod mod, Uint16 unicode);

public:
	SDL_Surface*	getWindowSurface();
	int				getGameState();
};

#endif